package com.nulldev.util.web.HttpServer3.pages.js_backend.impl;

public class JSWindowObject {
	public static JSWindowObject SERVER_WINDOW = new JSWindowObject();

	public final JSNavigatorObject navigator = new JSNavigatorObject();

	public class JSNavigatorObject {

		public final String userAgent = "Mozilla/0.0 (HttpServer 3.x; NOT KHTML) HttpServer on JS 1.0.0";
		public final String appCodeName = "Propane";
		public final String appName = "HttpServerOnJS";
		public final String product = "nullUtil.";
		public final String vendor = "Supply Co.";
		public final String vendorSub = "";

		public final boolean cookieEnabled = false;
		public final double deviceMemory = Math.floor((float) (Runtime.getRuntime().totalMemory() / 1024 / 1024));
		public final int hardwareConcurrency = Runtime.getRuntime().availableProcessors();

		public boolean javaEnabled() {
			return true;
		}

		public boolean taintEnabled() {
			return false;
		}
	}

	public final JSWindowObject self = SERVER_WINDOW;
}
